#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>



void reverse_string(char* string, int left, int right) {
	if (left >= right) {
		return;
	}
	char temp = string[left];
	string[left] = string[right];
	string[right] = temp;
	reverse_string(string, left + 1, right - 1);
}



int main() {
	char arr[10] = "abcdef";
	reverse_string(arr, 0, strlen(arr) - 1);
	printf("%s", arr);
	return 0;
}
